
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import axios from 'axios'
// import VueAxios from 'vue-axios'
import App from './App.vue'
import router from './router'


//引用axios
import axios from "axios"
import VueAxios from "vue-axios"

import Vue from 'vue'

//富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

// 引入富文本编辑器的样式
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";

Vue.use(VueQuillEditor);

Vue.config.productionTip = false // 是否显示错误信息
Vue.use(ElementUI);
Vue.use(VueAxios,axios);
Vue.use(VueQuillEditor, /* { 默认全局 } */)

// 设置请求根路径
axios.defaults.baseURL="http://localhost:8080";
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded';

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
